import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
import login from '@/pages/login'
import register from '@/pages/register'


Vue.use(Router)

let router = new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: index,
      //redirect:'/userHome/personMessage',
    },
    {
      path: '/login',
      name: '登录',
      component: login
    },
    {
      path: '/register',
      name: '注册',
      component: register
    },
  ]
})



export default router